<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="text-html; charset=Windows-1252">
<title>Contents</title>
<style>@import url(coUA.css);</style>
<link disabled rel="stylesheet" href="htmlhelp.css">
</HEAD>

<BODY>
<h1>Contents command</h1>

<h2>Purpose</h2>

<p>Creates a graphical table of contents that displays a specified contents (.hhc) file.</p>

<p>This command can be used with either a compiled help (.chm) file or uncompiled HTML files.</p>

<h2>Syntax</h2>

<p><pre><code>
&lt;PARAM name="Command" value="Contents"&gt;
<br>&lt;PARAM name="Item1"   value="<i>.hhc file path</i>"&gt;
<br>&lt;PARAM name="Flags"   value="0x<i>n</i>,0x<i>n</i>"&gt;
</pre></code></p>

<br>
<table border=1 cellpadding=0 cellspacing=0 width=100%>
<tr valign=top>
<th width=25%>
<b>Property</b>
</th>
<th>
<b>Description</b>
</th>
</tr>

<tr valign=top>
<td>
<a href="ocx_pcommand.htm">Command</a>
</td>
<td>
Calls the <b>Contents</b> command.
</td>
</tr>
<tr valign=top>
<td>
<a href="ocx_pflags.htm">Flags</a>
</td>
<td>
Specifies <b>ExWindow Styles</b> and <b>Window Styles</b> values for the selected window style attributes. The values are stored as hexadecimal numbers in the format 0x<i>n</i>.

<p>We recommend that you use the HTML Help ActiveX Control Wizard to select window styles. The wizard automatically inserts the appropriate parameter values in the format 0x<i>n</i>.</p>
</td>
</tr>
<tr valign=top>
<td>
<a href="ocx_pitem.htm">Item1</a>
</td>
<td>
Specifies the contents (.hhc) file path.
</td>
</tr>
</table>

<h2>Example</h2>

<p><pre><code>
&lt;OBJECT
<br>  id=MyControl
<br>  type=&quot;application/x-oleobject&quot;
<br>  classid=&quot;clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11&quot;
<br>  codebase=&quot;HHCTRL.ocx#Version=4,72,8252,0&quot;
<br>  width=100%
<br>  height=100%
<br>&gt;
<br>  &lt;PARAM name=&quot;Command&quot; value=&quot;Contents&quot;&gt;
<br>  &lt;PARAM name=&quot;Item1&quot; value=&quot;C:\toc.hhc&quot;&gt;
<br>  &lt;PARAM name=&quot;Flags&quot; value=&quot;0x4000,0x800035&gt;
&lt;/OBJECT&gt;
</pre></code></p>

<h2>Comments</h2>
<ul>
<li>The <b>Flags</b> parameter will overwrite any <b>ExWindow Styles</b> and <b>Window Styles</b> parameter values that have been set in the specified contents (.hhc) file using the <b>Table of Contents</b> dialog box in HTML Help Workshop.</li>
</ul>

<br>
<table border="0" cellpadding="0" cellspacing="4">
<tr>
<td valign="top"><a href="ocx_commands.htm"><img src="proced.gif" alt="link to overview topic" border="0"></a>
</td>
<td><a href="ocx_commands.htm">About commands</A>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>

</BODY>
</HTML>
